{% extends 'base.html' %}
{% import '_my_wtf_macros.html' as my_wtf_macros %}

{% block title %}万屏时代--新增项目案例{% endblock %}

{% block panel_heading %}万屏时代--新增项目案例{% endblock %}
{% block panel_body %}
    <form action="{{ url_for('enterprise_bp.enterprise_item_add', item_key='project', enterprise_id = enterprise_id) }}" method="post" class="form" role="form">
        <div class="well well-sm">新增项目案例</div>
        {{ my_wtf_macros.form_field(form.weight, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.project_type_id, div_col=4, label_col=5, field_col=7) }}
        {{ my_wtf_macros.form_field(form.project_cost, div_col=4, label_col=5, field_col=7) }}
        {{ my_wtf_macros.form_field(form.project_title, div_col=4, label_col=5, field_col=7) }}
        {{ my_wtf_macros.form_field(form.project_text, div_col=4, label_col=5, field_col=7) }}
        <div class="clearfix visible-xs-block visible-sm-block visible-md-block visible-lg-block"></div>
        项目图片:<input type="file" class="qiniu_upload" accept=".jpg,.png" data-img-key="project_img">
        <div class="pull-right">
            <button type="submit" class="btn btn-success"
                    id="add-user-btn">
                新增
            </button>
        </div>
    </form>
{% endblock %}
{% block scripts %}
{{ super() }}
    <script src="{{url_for('static', filename='opc.js')}}"></script>
{% endblock %}

